public class testDemo {
    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        myArraylist.add(1);
        myArraylist.add(3);
        myArraylist.add(5);
        myArraylist.add(1,2);
        System.out.println(myArraylist.contains(3));
        myArraylist.indexOf(3);
        myArraylist.display();
        myArraylist.set(2, 4);
        myArraylist.remove(5);
        myArraylist.display();
    }

}
